<!DOCTYPE html>
<html>
	<head>
		<title>
			<?php
			if (isset($title)) {
				echo $title;
			} else {
				echo 'web Hotel Gen';
			}
			?>
		</title>
		<!--Baris-baris berikut untuk membuat menu bar dengan jQuery-->
                <style>
                    body{
	background:#fff url('<?php echo IMAGES ?>bg.gif');
}
#wrapper{
	margin: 0 0 0 -250px;
	background:#fff;
	width: 500px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	position:absolute;
	top:110px;
	left:50%;
}
#header{
	height:132px;
	background:url('<?php echo IMAGES ?>borderlogin.gif') bottom repeat-x;
}
#logo{
	padding-top:10px;
	text-align:center;
}
#loginbox{
	background:url('<?php echo IMAGES ?>bg_login.jpg');
	height:300px;
	width:500px;
	position:absolute;
	top:132px;
	left:0;
}
#loginform{
	background:#faf4e5;
	border-left:#7f736c solid 2px;
	border-right:#7f736c solid 2px;
	width:251px;
	height:118px;
	position:absolute;
	top:16px;
	left:233px;
}
.loginform{
	font-size:10pt;
	font-family: Arial;
	padding:13px;
}
.submit{
	font-weight:bold;
	border:#691e0f solid 1px;
	color:#fff;
	width:55px;
	height:20px;	
	background:#691e0f;
}
.login{
	font-weight:bold;
	border:#691e0f solid 1px;
	width:218px;
	height:25px;
	color:#691e0f;
	margin:5px;
}
#footer{
	margin:20px;
	color:#898989;
	position:absolute;
	top:420px;
	left:0;
}
                </style>
        <link rel="stylesheet" href="<?php echo CSS_JQUERY ?>jquery.ui.all.min.css" type="text/css" title="ui-theme" />
		<link rel="stylesheet" href="<?php echo CSS ?>mymenubar.css" type="text/css" title="ui-theme" />
		<link rel="stylesheet" href="<?php echo CSS ?>demo_table_jui.css" type="text/css"/>
        <script language="javascript" src="<?php echo JQUERY ?>jquery-1.5.2.min.js"></script>
		<script language="javascript" src="<?php echo JQUERY ?>jquery.datatables.js"></script>
                <script language="javascript" src="<?php echo JQUERY ?>FixedColumns.js"></script>
        <script language="javascript" src="<?php echo JQUERYUI ?>jquery.ui.core.min.js"></script>
        <script language="javascript" src="<?php echo JQUERYUI ?>jquery.ui.widget.min.js"></script>
        <script language="javascript" src="<?php echo JQUERYUI ?>jquery.ui.position.min.js"></script>
        <script language="javascript" src="<?php echo JQUERYUI ?>jquery.ui.button.min.js"></script>
        <script language="javascript" src="<?php echo JQUERYUI ?>jquery.ui.menu.min.js"></script>
        <script language="javascript" src="<?php echo JQUERYUI ?>jquery.ui.menubar.min.js"></script>
		<script language="javascript" src="<?php echo JQUERYUI?>jquery.ui.mouse.min.js"></script>
		<script language="javascript" src="<?php echo JQUERYUI?>jquery.ui.draggable.min.js"></script>
		<script language="javascript" src="<?php echo JQUERYUI?>jquery.ui.position.min.js"></script>
		<script language="javascript" src="<?php echo JQUERYUI?>jquery.ui.resizable.min.js"></script>
		<script language="javascript" src="<?php echo JQUERYUI?>jquery.ui.dialog.min.js"></script>
		<script language="javascript" src="<?php echo JQUERYUI?>jquery.ui.datepicker.min.js"></script>
		<script>
		$(document).ready(function() {
			$( "#dialog" ).dialog({
				autoOpen: false,
				width : 400,
				height : 300,
				modal : true
			});
		} );
		function load_dialog(id){
			$("#ui-dialog-title-dialog").text("Asisten Pendaftar");
			$("#dialog").empty();
			$("#dialog").append('<center><img src="<?php echo IMAGES?>spinner.gif"/></center>');
			$("#dialog").dialog("open");
			$("#dialog").load('<?php echo JADWAL ?>display_pemilih/'+id);
		}
		</script>
        <script>
			$(function() {
				$("#bar1, .menubar").menubar({
					menuIcon: true,
					buttons: true
				});
			});
			function confirm_msg(){
				return confirm('Apakah benar akan dihapus?');
			}
		</script>
		<style>
			.clicked{
				cursor: pointer;
				color : blue;
			}
			.clicked:hover{
				text-decoration: underline;
			}
			.selected{
				background-color: yellow;
			}
		</style>
	</head>
	<body>

<?php
if($this->access->is_login())
{
$menu = $this->fungsi_model->get_all_fungsi();

for ($i=0;$i<count($menu);$i++)
{
    ?>
<a href="<?php echo base_url().$menu[$i]['link'] ?>"><?php echo $menu[$i]['nama_fungsi'] ?></a> ||
<?php
}
?>
<a href="<?php echo HOME ?>logout">log out</a>
<?php } ?>
<br />
